home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11040 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news1.is.net!news
  2. From: Mark VanTassel <mvantassel@teambca.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Watcom C++ pecularities
  5. Date: Tue, 12 Mar 1996 08:10:38 -0500
  6. Organization: Barfield, Cauthen and Associates
  7. Message-ID: <314577CE.1FCD@teambca.com>
  8. References: <64cnnJdipZB@nana.franken.de>
  9. NNTP-Posting-Host: dynamic12.is.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win95; I)
  14.  
  15. Wolfgang Thomas wrote:
  16. > 3.) How can a class be exported within a DLL? The documentation only
  17. >     states that for a function an underscore has to be added. But what
  18. >     is the naming convention for member functions?
  19.  
  20. The names get "mangled" in a complicated way... (BTW, even non-members get mangled unless you 
  21. declare then with <extern "C">)... under MSVC++, you can put _export in front of each member 
  22. function in the class declaration, and the DLL will contain all the member functions - and, if 
  23. you include the H file in your EXE's code, the mangled names will match and it will all magically 
  24. work without needing to worry about the mangling at all).
  25.